package com.zjitc.p2.obj;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/13 14:33
 * @description: 静态代理
 */
public class C implements M {

  private A a;

  public C(A a) {
    this.a = a;
  }

  @Override
  public void a() {
    System.out.println("init");
    a.a();
    System.out.println("destroy");
  }

  @Override
  public void b() {
    a.b();
  }
}
